unit cmdSetDPI;

interface

uses  classes, sysutils
    , nativeXml
    , appMappldXmlNode
    , appMappldXmlCommand
    , appMappldTypes
    , appMappldXmlContext
;

type
    {------------------------------ TCmdSetDPI }

    {***************************************************************************
    * TCmdSetDPI
    ***************************************************************************}
    TCmdSetDPI = class( TMappldXmlCommand )
protected
    procedure   internalProccess(); override;
    end;

implementation

{*******************************************************************************
* internalProccess
*******************************************************************************}
procedure TCmdSetDPI.internalProccess();
begin
    FxmlContext.dpi := FxmlNode.ValueAsIntegerDef( 96 );
end;

initialization

TMappldXmlCommand.registerCommandByCode( XML_CMD_SetDPI, TCmdSetDPI );

end.
